package com.lanou.bbs.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

// 帖子
public class Invitation {

    private int tid; // 帖子的id
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date invitationDate; // 发帖的时间
    private String digest;
    private int uid; // 发帖人的id
    private int invitationState; // 帖子的状态

    public int getTid() {
        return tid;
    }

    public Invitation setTid(int tid) {
        this.tid = tid;
        return this;
    }

    public Date getInvitationDate() {
        return invitationDate;
    }

    public Invitation setInvitationDate(Date invitationDate) {
        this.invitationDate = invitationDate;
        return this;
    }

    public String getDigest() {
        return digest;
    }

    public Invitation setDigest(String digest) {
        this.digest = digest;
        return this;
    }

    public int getUid() {
        return uid;
    }

    public Invitation setUid(int uid) {
        this.uid = uid;
        return this;
    }

    public int getInvitationState() {
        return invitationState;
    }

    public Invitation setInvitationState(int invitationState) {
        this.invitationState = invitationState;
        return this;
    }
}
